export const _statusBarHeight = () => {
	return uni.$u.sys().statusBarHeight;
};
export const _addUnit = (value, unit) => {
	return uni.$u.addUnit(value, unit);
};
export const _containerHeight = () => {
	return uni.$u.addUnit(_windowHeight() - _statusBarHeight() - _navHeight(), 'px');
};
export const _tabContainerHeight = () => {
	return uni.$u.addUnit(_windowHeight() - _statusBarHeight() - _navHeight() - _tabHeight(), 'px');
};
export const _getPx = (rpx) => {
	return uni.$u.getPx(rpx);
};
export const _screenHeight = () => {
	return uni.$u.sys().screenHeight;
};
export const _windowHeight = () => {
	return uni.$u.sys().windowHeight;
};
export const _windowWidth = () => {
	return uni.$u.sys().windowWidth;
};
export const _navHeight = () => {
	return getApp().globalData.NavHeight;
};
export const _tabHeight = () => {
	return getApp().globalData.customTbabar;
};
export const _searchHeight = () => {
	return uni.$u.getPx(getApp().globalData.searchHeight);
};
export const _rpxTpx = (rpx) => {
	return uni.$u.getPx(rpx);
};
export const telFormat = (tel) => {
	tel = String(tel);
	return tel.substr(0, 3) + "****" + tel.substr(7);
};
